package com.kehutong.crm.entity;

import org.coraframework.bean.valid.CheckField;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

/**
 * 客户
 * @Author: liuzhen (liuxing521a@163.com)
 * @Date: 20/4/13 上午9:08
 */
@Table(value="t_category", comment="客户分类", multi=true)
public class Category extends Entity {

	private static final long serialVersionUID = -4698081577651406994L;

	protected Category(String id) {
        super(id);
    }

    @CheckField("分类名称不能为空")
    @Column(comment = "分类名")
    private String  name;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

}
